package com.lfy.modules.blog.domain.dto.leave;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.Date;
@Data
public class LeaveMsgDTO {
    /**
     * id
     */
    @NotBlank(message = "blog标识不能为空")
    private String url;

    /**
     * 邮箱
     */
    @Email(message = "邮箱格式不正确")
    @NotBlank(message = "邮箱不能为空")
    private String email;

    /**
     * 匿名昵称
     */
    @NotBlank(message = "昵称不能为空")
    @Length(max = 20, min = 1, message = "昵称长度不能超过20")
    private String name;

    /**
     * 回复对象昵称
     */
    @Length(max = 20, min = 1, message = "昵称长度不能超过20")
    private String toName;


    /**
     * 评论层级 0：顶层
     */
    private Long parentId;

    /**
     * 回复内容
     */
    @NotBlank(message = "回复内容不能为空")
    @Length(max = 500, min = 1, message = "回复内容长度不能超过500")
    private String commentContent;



}
